package objects;

import java.sql.Blob;

public class NewStudent {
    private Integer id;
    private String name;
	private Integer instr_id;
	private Integer school_id;
	private Double hours;
    private String address;
    private Blob fingerprint;

	public NewStudent() {
    	id=0;
		name="";
		instr_id=0;
		school_id=0;
		hours=0.0;
		address="";
	}

    public NewStudent(Integer newid) {
        id=newid;
        name="";
        instr_id=0;
        school_id=0;
        hours=0.0;
        address="";
    }

	public void setID(Integer newid) {
		id = newid;
	}

	public void setName(String newname) {
		name = newname;
	}

    public void setAddress(String newaddress) {
        address = newaddress;
    }

    public void setHours(Double newhours) {
        hours  = newhours;
    }
	
	public void setInstrID(Integer newinstrid) {
		instr_id= newinstrid;
	}

	public void setSchoolID(Integer newschoolid) {
		school_id = newschoolid;
	}

	public void setFingerprint(Blob newfingerprint) {
		fingerprint = newfingerprint;
	}

	public Integer getID() {
		return id;
	}
	
	public String getName() {
		return name;
	}

	public String getAddress() {
		return address;
	}
	
	public Double getHours() {
		return hours;
	}

	public Integer getInstrID() {
		return instr_id;
	}

	public Integer getSchoolID() {
		return school_id;
	}

	public Blob getFingerPrint() {
		return fingerprint;
	}

	public void display() {
        System.out.println("NewStudent ID " + id);
        System.out.println("Name: " + name);
        System.out.println("InstructorID " + instr_id);
        System.out.println("SchoolID " + school_id);
        System.out.println("HoursDriven " + hours);
        System.out.println("Address " + address);
        System.out.println("Fingerprint " + fingerprint);
	}
	
}
